'use strict'

let Koa = require("koa");
let server = require('koa-static');
let tem = require("./template");


let app = new Koa();

app.use(tem);

app.use(server(__dirname + '/statics'))

app.use(async (ctx,next)=>{
    ctx.render('block.html',{name:'大神阿德'});
    
})

let port = 3000;
app.listen(port);
console.log(`http://localhost:${port}`);